package com.jdk8.demo;

public class Lambda_Runnable {
	
	public static void main(String[] args) {
		
		//以前的方式
		new Thread(new Runnable() {
			@Override
			public void run() {
			System.out.println("实现的线程old");
				
			}
		}).start();

		//Lambda
		new Thread(()->System.out.println("实现的线程new")).start();
	}

}
